import { createApp } from "vue";
import { createPinia } from "pinia";
// 1. 引入你需要的组件
import {
  Button,
  Cell,
  CellGroup,
  Image,
  Field,
  RadioGroup,
  Radio,
  DatePicker,
  Popup,
  Picker,
  Area,
  Icon,
  SwipeCell,
  Checkbox,
  Popover,
  PullRefresh,
  Progress,
  NavBar,
  Divider,
  PickerGroup,
  ActionSheet,
} from "vant";
// 2. 引入组件样式
import "vant/lib/index.css";

import App from "./App.vue";
import router from "./router";
import { Tab, Tabs } from "vant";

const app = createApp(App);

app.use(createPinia());
app.use(Button);
app.use(Cell);
app.use(CellGroup);
app.use(Image);
app.use(Field);
app.use(RadioGroup);
app.use(Radio);
app.use(DatePicker);
app.use(Popup);
app.use(Picker);
app.use(PickerGroup);
app.use(Area);
app.use(Icon);
app.use(SwipeCell);
app.use(Checkbox);
app.use(Popover);
app.use(PullRefresh);
app.use(Progress);
app.use(NavBar);
app.use(Divider);
app.use(ActionSheet);
app.use(router);
app.use(Tab);
app.use(Tabs);
// app.use(showSuccessToast);

app.mount("#app");
